package com.audaque.springboot.foshanupload.web.productdemo.service;

import com.audaque.springboot.foshanupload.web.productdemo.doc.ProductEs;
import com.audaque.springboot.foshanupload.web.productdemo.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 商品 服务类
 * </p>
 *
 * @author zgb
 * @since 2024-04-21
 */
public interface IProductService extends IService<Product> {
    boolean createIndexAndPushMapping();

    void db2es() throws Exception;

    Page<ProductEs> multiMatch(@RequestParam("keyword") String keyword) throws Exception;


}
